package cn.tedu.zx.ams.adapter.mapper;

import cn.tedu.zx.pojo.admin.entity.RolePermission;
import cn.tedu.zx.pojo.admin.entity.SuperAdminAuto;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

@Repository
public interface RolePermissionMapper extends BaseMapper<RolePermission> {
    int deleteByRoleId(Long id);

    int deleteByPermissionId(Long id);

    int countRoleIdByPermissionId(Long id);

    int insertSuperAdminAuto(SuperAdminAuto superAdminAuto);
}
